package anc.server.tankshooter.models;


public class Account extends DbEntity {
	private int mAccountId;
	/**
	 * Tên tài khoản
	 * 10 ký tự
	 */
	private String mUsername;
	private String mPassword;
	private int mAvatarId;
	/**
	 * 50 ký tự
	 */
	private String mName;
	/**
	 * 50 ký tự
	 */
	private String mEmail;
	private int mLevel;
	
	public Account()
	{
		mUsername = "";
		mPassword = "";
		mName = "";
		mEmail = "";
		mAccountId = -1;
		mLevel = -1;
	}
	@Override
	public void resetFields() {
		mAccountId = 0;
		mUsername = "";
		mPassword = "";
		setAvatarId(0);
		setName("");
		setEmail("");
	}

	public int getAccountId() {
		return mAccountId;
	}

	public void setAccountId(int accountId) {
		this.mAccountId = accountId;
	}

	public String getUsername() {
		return mUsername;
	}

	public void setUsername(String username) {
		this.mUsername = username;
	}

	public String getPassword() {
		return mPassword;
	}

	public void setPassword(String password) {
		this.mPassword = password;
	}

	public int getAvatarId() {
		return mAvatarId;
	}

	public void setAvatarId(int mAvatarId) {
		this.mAvatarId = mAvatarId;
	}

	public String getName() {
		return mName;
	}

	public void setName(String mName) {
		this.mName = mName;
	}

	public String getEmail() {
		return mEmail;
	}

	public void setEmail(String mEmail) {
		this.mEmail = mEmail;
	}

	public int getLevel() {
		return mLevel;
	}

	public void setLevel(int mLevel) {
		this.mLevel = mLevel;
	}

	
	
	
}
